<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{% $title %}</title>
<script language="javascript" type="text/javascript"
	src="js/default/jquery-1.9.1.min.js"> </script>
<script language="javascript" type="text/javascript">
$=jQuery;
tmp_choice=0;
channel_articles_number={% $whether_channel_has_articles %};
child_article_num={% $child_channel_num %};
$(document).ready(function(){
	channel_id=$("#channel_id").val();
	$("#article_move_to_channel option[value="+channel_id+"]").attr("disabled","disabled");
	if(child_article_num==1){
		pre_id=$("#pre_id").val();
	$("#article_move_to_channel option[value="+pre_id+"]").removeAttr("disabled");
	}

	if(channel_articles_number==0){
    $("#channel_has_articles").hide();
    $("#channel_visit_path_exists").hide();
}
});
function setSelectDisabled(){
	if($("#delete").is(':checked')){
		$("#article_move_to_channel").attr("disabled","disabled");
	}else{
		$("#article_move_to_channel").removeAttr("disabled");
	}
}
</script>
<style>
/*主体*/
html,body {
	width:  100%;
	height: 100%;
	margin-top: 3px;
	font-family: "微软雅黑";
	font-size: 13px;
	margin:0px;
	color:#333;
}

#main {
    padding-left:20px;
    padding-top:1px;
	border: 1px double #aaa;
}

a{
   text-decoration: none;
}
div{
 background:#EEFFEE;
}

#channel_name{
 color:red;
}

#submit{
 padding-left:10px;
  padding-bottom:5px; 
}
</style>
</head>
<body>
	<div id="main">
		<form action="channel_remove_save.php" method="post" id="forms" onSubmit="return checkSubmit()">
		   <input type="hidden" id="channel_id" name="channel_id" value="{% $channel_id %}"/>
		    <input type="hidden" id="channel_name" name="channel_name" value="{% $channel_name %}"/>
		   <input type="hidden" id="pre_id" name="pre_id" value="{% $pre_id %}"/>
		   <div>你确定要删除栏目<span id="channel_name">[{% $channel_name %}]</span>吗？</div>
           <input type="hidden" name="whether_channel_has_articles" id="whether_channel_has_articles" value="{% $whether_channel_has_articles %}"/>
			<div id="channel_has_articles">
			<span>该栏目含有文章,移动至：</span>
			<select  name='article_move_to_channel' id='article_move_to_channel'>
				{% $all_article_channel %}
			</select>
			<span>或</span><input type="checkbox" id="delete" name="delete[]" onclick="setSelectDisabled();"/><span>直接删除</span>
			</div>
			<div id="submit"><input type="submit" title="保存" name="submit" value="确定"  /><input type="button" title="取消" name="cancel" value="取消" onclick="history.back();"/></div>
	</form>
	</div>
</body>
</html>